namespace learn
{


    public class GeneralList<T>
    {
        public void Add(T item)
        {

        }
    }
    public class ExampleClass
    {

    }


    class TestGeneralList
    {
        static void Main()
        {
            GeneralList<int> list1 = new GeneralList<int>();
            list1.Add(1);

            GeneralList<string> list2 = new GeneralList<string>();
            list2.Add("alex");

            GeneralList<ExampleClass> list3 = new GeneralList<ExampleClass>();
            list3.Add(new ExampleClass());

            General<int> list = new General<int>();

            for (int i = 0; i < 10; i++)
            {
                list.AddHead(i);
            }

            foreach (int i in list)
            {
                Console.WriteLine(i);
            }
            Logger.WriteMessage += LoggingMethods.LogToConsole;

            var file= new FileLogger("log.txt");

            Logger.WriteMessage+=LoggingMethods.LogToConsole;
            Console.WriteLine("Done");
        }
    }
}